<?php

namespace App\Entity;

use App\Repository\ApiDocRepository;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=ApiDocRepository::class)
 * @ORM\HasLifecycleCallbacks()
 * @ORM\Table(options={"comment":"接口文档表"})
 */
class ApiDoc {
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $content;

    /**
     * @ORM\Column(type="datetime", nullable=true)
     */
    private $created_at;

    public function getId (): ?int {
        return $this->id;
    }

    public function getContent (): ?string {
        return $this->content;
    }

    public function setContent (?string $content): self {
        $this->content = $content;

        return $this;
    }

    public function getCreatedAt (): ?\DateTimeInterface {
        return $this->created_at;
    }

    public function setCreatedAt (?\DateTimeInterface $created_at): self {
        $this->created_at = $created_at;

        return $this;
    }
}
